<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Grocery extends CI_Controller {

    function __construct() {
        parent::__construct();
        $this->user = ($this->sitemodel->is_logged()) ? $this->sitemodel->get_user($this->session->userdata('lastname')) : false;
        $this->view_folder = strtolower(__CLASS__) . '/';
        $this->picture_path = base_url() . 'pictures/';
    }

    // Fonction défaut
    public function index() {
        /*$data = array(
            'title' => 'Bienvenue sur le site',
            'articles' => $this->sitemodel->getAll(),
            'content' => $this->view_folder . __FUNCTION__
        );*/
        //$this->load->view('template/content', $data);
        echo "coucou";
    }
}